---
page_title: "cloudflare_device_dex_test Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a Cloudflare Device Dex Test resource. Device Dex Tests allow for building location-aware device settings policies.
---

# cloudflare_device_dex_test (Resource)

Provides a Cloudflare Device Dex Test resource. Device Dex Tests allow for building location-aware device settings policies.

## Example Usage

```terraform
resource "cloudflare_device_dex_test" "example" {
  account_id  = "f037e56e89293a057740de681ac9abbe"
  name        = "GET homepage"
  description = "Send a HTTP GET request to the home endpoint every half hour."
  interval    = "0h30m0s"
  enabled     = true
  data {
    host   = "https://example.com/home"
    kind   = "http"
    method = "GET"
  }
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `account_id` (String) The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
- `data` (Block List, Min: 1, Max: 1) The configuration object which contains the details for the WARP client to conduct the test. (see [below for nested schema](#nestedblock--data))
- `description` (String) Additional details about the test.
- `enabled` (Boolean) Determines whether or not the test is active.
- `interval` (String) How often the test will run.
- `name` (String) The name of the Device Dex Test. Must be unique.

### Read-Only

- `created` (String) Timestamp of when the Dex Test was created.
- `id` (String) The ID of this resource.
- `updated` (String) Timestamp of when the Dex Test was last updated.

<a id="nestedblock--data"></a>
### Nested Schema for `data`

Required:

- `host` (String) The host URL for `http` test `kind`. For `traceroute`, it must be a valid hostname or IP address.
- `kind` (String) The type of Device Dex Test. Available values: `http`, `traceroute`.

Optional:

- `method` (String) The http request method. Available values: `GET`.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_device_dex_test.example <account_id>/<device_dex_test_id>
```
